<template>
  <div id="app">
      <div class="main">
          <!-- 顶部组件 -->
          <header-navs v-if="!$route.meta.headerflag" @comdata="comdata"></header-navs>
          
          <!-- 路由视图 -->
          <router-view v-show="Obvhid"></router-view>

          <!-- 播放音乐 -->
          <player></player>
      </div>
  </div>
</template>

<script>
import headerNavs from "./components/base/headerNavs";
import player from "./components/base/player";

export default {
  data() {
    return {
      headerflag: true,
      Obvhid: true,
    }
  },
  methods:{
    comdata(obj){
      this.Obvhid = obj
    }
  },
  components:{
      headerNavs,
      player
  },
}
</script>

<style lang="less">
@import "./assets/css/base.css";
html,body,#app{
    width: 100%;
    height: 100%;
}


</style>
